<?php
session_start();

echo "<head>";
echo "<link rel='stylesheet' href='format.css' type='text/css'>";
echo "</head>";
echo "<BODY>";

echo "<BR><BR>";
echo "<TABLE class=tab>";

if( fktNeueEmails() )
	echo "<TR class=tab><TD class=tab><img src='images\Email_Neu.png'></TD><TD width=200px class=tab>";
else
	echo "<TR class=tab><TD class=tab><img src='images\Email.png'></TD><TD width=200px class=tab>";

	echo "<a href='email.php' target='haupt'><FONT class='rot'>Email</FONT></a>";
echo "</TD></TR>";
echo "<TR class=tab><TD clas=tab><img src='images\Treffpunkt.png'></TD><TD class=tab>";
	echo "<a href='teilnahme.php' target='haupt'><FONT class='rot'>Teilnahme am Sonntag</FONT></a>";
echo "</TD></TR>";
echo "<TR class=tab><TD class=tab><img src='images\Austragungsort.png'></TD><TD class=tab>";
	echo "<a href='austragungsort.php' target='haupt'><Font class='rot'>Austragungsort</FONT></a>";
echo "</TD></TR>";
echo "</TABLE>";

echo "</BODY>";



function fktNeueEmails(){
	$mbox = imap_open ("{mail.feexgoal.de:143/notls}INBOX", "web78p3", "Iba21N81iEg");
	if( imap_num_msg($mbox) == 0 )
		return false;
	else
		return true;
}	
?>
